package com.yan.exceptiontest.domain;

public class Judge {

    public void isTriangle(int a , int b, int c){
        if(a + b <= c){
            throw new IllegalArgumentException(a +"," +  b +"," +  c + "不能构成三角形");
        }else{
            System.out.println("可以构成三角形");
        }
    }
}
